package com.geek.novel.listener

import com.geek.novel.vo.ApiErrorResult
import com.geek.novel.vo.ApiResult

/**
 * Http返回结果的监听器
 */
interface ApiResultListener {

    fun handleWarning(code: Int){
    }

    fun handleError(code: Int, err: ApiErrorResult){}

    fun handleResult(result: ApiResult, code: Int)

    fun handleLogout(code: Int){
    }

}